<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:113:"/Applications/MAMP/htdocs/2020-08/school_activity_registration/public/../application/admin/view/user/teacher.html";i:1596420793;s:97:"/Applications/MAMP/htdocs/2020-08/school_activity_registration/application/admin/view/layout.html";i:1596448875;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>报名系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <script src="/static/js/jquery.js"></script>
    <link rel="stylesheet" href="/static/css/admin.css?v=1">
</head>
<body>
<!--大盒子-->
<div id="container">
    <!--头部-->
    <header>
        <div id="top-left"></div>
        <div id="top-right">
            <ul>
                <?php if(\think\Request::instance()->session('admin')): ?>
                <li><a href=""><?php echo \think\Request::instance()->session('admin'); ?>,欢迎您</a></li>
                <li><a href="<?php echo url('index/admin'); ?>">管理员</a></li>
                <li><a href="<?php echo url('index/logout'); ?>">退出</a></li>
                <li><a href="<?php echo url('@home'); ?>">主页</a></li>
                <?php else: ?>
                <li><a href=""></a></li>
                <li><a href="<?php echo url('index/admin'); ?>">管理员</a></li>
                <li><a href="<?php echo url('@home'); ?>">主页</a></li>
                <?php endif; ?>

            </ul>

        </div>
    </header>
    <!--主页行-->
    <div id="firstpage"><a href="<?php echo url('index/index'); ?>">主 页</a></div>
    <!--内容-->
    <section>
        <div class="left" id="menupane">
            <h5 class="menu_head">信息发布</h5>
            <div class="menu_body " <?php if((in_array($action,['preject/sendpreject']))): ?> style="display: block" <?php endif; ?>>
                <a href="<?php echo url('preject/sendpreject'); ?>" <?php if(($active=='sendpreject')): ?> class="active" <?php endif; ?>>项目发布</a>
<!--                <a href="<?php echo url('preject/sendnotice'); ?>">公告发布</a>-->
<!--                <a href="<?php echo url('preject/sendquestion'); ?>">问题发布</a>-->
            </div>

            <h5 class="menu_head">信息管理</h5>
            <div class="menu_body" <?php if((in_array($action,['preject/preject']))): ?> style="display: block" <?php endif; ?>>
                <a href="<?php echo url('preject/preject'); ?>" <?php if(($active=='preject')): ?> class="active" <?php endif; ?>>项目管理</a>
<!--                <a href="<?php echo url('preject/notice'); ?>">公告管理</a>-->
<!--                <a href="<?php echo url('preject/question'); ?>">问题管理</a>-->
            </div>

            <?php if(\think\Request::instance()->session('apartment')==""): ?>
            <h5 class="menu_head">用户管理</h5>
            <div class="menu_body" <?php if((in_array($action,['user/student','user/teacher','user/outuser']))): ?> style="display: block" <?php endif; ?>>
                <a href="<?php echo url('user/student'); ?>" <?php if(($active=='student')): ?> class="active" <?php endif; ?>>学生管理</a>
                <a href="<?php echo url('user/teacher'); ?>" <?php if(($active=='teacher')): ?> class="active" <?php endif; ?>>教工管理</a>
<!--                <a href="<?php echo url('user/outuser'); ?>" >校外管理</a>-->
            </div>

            <h5 class="menu_head">学院信息</h5>
            <div class="menu_body" <?php if((in_array($action,['school/apartment','school/major','school/classi']))): ?> style="display: block" <?php endif; ?>>
                <a href="<?php echo url('school/apartment'); ?>" <?php if(($active=='apartment')): ?> class="active" <?php endif; ?>>部门管理</a>
                <a href="<?php echo url('school/major'); ?>" <?php if(($active=='major')): ?> class="active" <?php endif; ?>>专业管理</a>
                <a href="<?php echo url('school/classi'); ?>" <?php if(($active=='classi')): ?> class="active" <?php endif; ?>>班级管理</a>

            </div>
            <?php endif; ?>

            <h5 class="menu_head">已报项目</h5>
            <div  class="menu_body" <?php if((in_array($action,['already/person','already/team']))): ?> style="display: block" <?php endif; ?>>
                <a href="<?php echo url('already/person'); ?>" <?php if(($active=='person')): ?> class="active" <?php endif; ?>>个人报名</a>
                <a href="<?php echo url('already/team'); ?>" <?php if(($active=='team')): ?> class="active" <?php endif; ?>>团队报名</a>
            </div>

        </div>
         <!--右侧-->
        <div id="right">
            <div id="preject">
    <div id="table">
        <table>
            <tr><th>序号</th> <th>用户名</th> <th>系部</th> <th>邮箱</th> <th>手机号码</th> <th><a href="<?php echo url('excelteacher'); ?>">导出</a></th>
                <!--<th><form action="<?php echo url('putteacher'); ?>" method="post" enctype="multipart/form-data">-->
                <!--<input type="file" name="file"/>-->
                <!--<input type="submit">-->
            <!--</form></th>-->
            </tr>
            <?php foreach($teacher as $k=>$v): ?>
            <tr><td><?php echo $teacher->currentPage()*30-30+$k+1; ?></td> <td><?php echo $v['name']; ?></td> <td><?php echo $v['apartment']; ?></td> <td><?php echo $v['email']; ?></td> <td><?php echo $v['phone']; ?></td>  <td><a href="<?php echo url('deleteteacher'); ?>?id=<?php echo $v['id']; ?>" onclick="javascript:if(confirm('确定删除报名吗？')){return true;}return false;">删除</a><td></td></td></tr>
             <?php endforeach; ?>
        </table>
    </div>
    <div id="page"><?php echo $teacher; ?></div>
</div>
        </div>
    </section>
</div>

</body>
</html>
<script>
    $(document).ready(function(){
        $("#menupane h5.menu_head").click(function(){
            $(this).addClass("current").next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("fast");
            $(this).siblings().removeClass("current");
        });

    });
</script>

<script type="text/javascript" src="/static/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/static/js/ueditor/ueditor.all.min.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('contnet');
</script>